package org.lee.mq.enums;

import lombok.Getter;

/**
 * @author jackielee
 * @version 1.0
 * @description enums
 * @date 2021/7/16
 **/
@Getter
public enum QueueExchange {
    DIRECT("space.notify.exchange.direct", true),
    FANOUT("space.notify.exchange.fanout", true),
    TOPIC("space.notify.exchange.topic", true),
    HEADERS("space.notify.exchange.headers", true);


    QueueExchange(String name, boolean durable) {
        this.name = name;
        this.durable = durable;
    }

    /**
     * 交换机名称
     */
    private String name;
    /**
     * 是否持久化
     */
    private boolean durable;
}
